home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
turbovis
/
tvtool17.zip
/
ACTLIB.ZIP
/
TOOLS.ZIP
/
GETKEY.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-05-25
|
410b
|
23 lines
/* Copyright (C) 1993 Marc Stern (internet: stern@mble.philips.be) */
#include "tools.h"
#include <conio.h>
/***
*
* Function : getkey
*
* Description: return a 2-bytes key pressed
* (extended characters are added to 256).
*
*/
int getkey( void )
{ int car;
if ( ! (car = getch()) ) car = 256 + getch();
return car;
}